package com.schoolcardinfo.beans;

public class LoseInfo {
	private int lid;//挂失ID
	private String ltime;//挂失时间
	private int studentId;//学号
	private String etime;//领取时间
	private int lget;//领取状态的修改
	
	@Override
	public String toString() {
		return "LoseInfo [lid=" + lid + ", ltime=" + ltime + ", studentId=" + studentId + ", etime=" + etime + ", lget="
				+ lget + "]";
	}

	public int getLid() {
		return lid;
	}

	public void setLid(int lid) {
		this.lid = lid;
	}

	public String getLtime() {
		return ltime;
	}

	public void setLtime(String ltime) {
		this.ltime = ltime;
	}

	public int getStudentId() {
		return studentId;
	}

	public void setStudentId(int studentId) {
		this.studentId = studentId;
	}

	public String getEtime() {
		return etime;
	}

	public void setEtime(String etime) {
		this.etime = etime;
	}

	public int getLget() {
		return lget;
	}

	public void setLget(int lget) {
		this.lget = lget;
	}

	public LoseInfo(int lid, String ltime, int studentId, String etime, int lget) {
		super();
		this.lid = lid;
		this.ltime = ltime;
		this.studentId = studentId;
		this.etime = etime;
		this.lget = lget;
	}

	public LoseInfo() {
		super();
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((etime == null) ? 0 : etime.hashCode());
		result = prime * result + lget;
		result = prime * result + lid;
		result = prime * result + ((ltime == null) ? 0 : ltime.hashCode());
		result = prime * result + studentId;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		LoseInfo other = (LoseInfo) obj;
		if (etime == null) {
			if (other.etime != null)
				return false;
		} else if (!etime.equals(other.etime))
			return false;
		if (lget != other.lget)
			return false;
		if (lid != other.lid)
			return false;
		if (ltime == null) {
			if (other.ltime != null)
				return false;
		} else if (!ltime.equals(other.ltime))
			return false;
		if (studentId != other.studentId)
			return false;
		return true;
	}

}
